﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="Comment.aspx.cs" Inherits="Admin_Comment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Manage Message</h3>
            <div class="clear">
            </div>
        </div>
        <div class="content-box-content">
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <input id="txtSearch" type="text" runat="server" class="text-input small-input" />
                    <asp:LinkButton ID="lbnSearch" runat="server" CssClass="button" OnClick="lbnSearch_Click"><img src="../images/icons/kinh.png" width="25px" height="20px"/></asp:LinkButton>
                    <br />
                    <br />
                    <br />
                    <br />
                    <div style="border: 1px solid #eeeeed; border-radius: 5px;">
                        <asp:GridView ID="grvComment" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            AllowPaging="true" PageSize="10" Width="100%" OnPageIndexChanging="grvComment_PageIndexChanging"
                            OnRowCommand="grvComment_RowCommand">
                            <Columns>
                                <asp:TemplateField HeaderText="Email" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbnMail" CommandArgument='<%#Eval("Comment_ID")%>' CommandName="View"
                                            runat="server"><%#Eval("Comment_Mail")%></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Title" HeaderStyle-Width="60%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbnTitle" CommandArgument='<%#Eval("Comment_ID")%>' CommandName="View"
                                            runat="server"><%#Eval("Comment_Title")%></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                    <asp:LinkButton ID="lbnRemove" runat="server" CommandName="Remove" CommandArgument='<%#Eval("Comment_ID") %>'><img src="../images/icons/cross.png" alt="Delete" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <div style="border: 1px solid #eeeeed; border-radius: 5px;">
                        <table width="100%" border="0">
                            <tr>
                                <td style="width: 30%">
                                    <label>
                                        Mail
                                    </label>
                                </td>
                                <td>
                                    <asp:Label ID="lblMail" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label>
                                        Title</label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTitle" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Label ID="lblContent" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:View>
            </asp:MultiView>
        </div>
    </div>
</asp:Content>
